﻿<%@ Register TagPrefix="uc1" TagName="PageNavigation" Src="../UserControls/PageNavigation.ascx" %>

<%@ Page Language="c#" CodeBehind="CloseList.aspx.cs" AutoEventWireup="false" Inherits="BEGDC.CC.Web.CloseList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
    <meta name="CODE_LANGUAGE" content="C#" />
    <meta name="vs_defaultClientScript" content="JavaScript" />
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
    <title>Alcatel-Lucent Customer Care</title>
    <!--<link href="../css/style.css" type="text/css" rel="stylesheet">
		<link href="../css/form.css" type="text/css" rel="stylesheet">-->
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/calendar.css" type="text/css" rel="stylesheet" />
    <link href="../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/entity.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../js/jquery.query-2.1.7.js" type="text/javascript"></script>

    <script type="text/javascript" src="../js/common.js"></script>

    <script type="text/javascript" src="../js/entity.js.aspx"></script>

    <script src="../js/workflow.js.aspx" type="text/javascript"></script>

    <script type="text/javascript">

        $(function() {
            $(".datepicker").datepicker({
                showOn: "button",
                buttonImage: "../images/calendar.gif",
                buttonImageOnly: true
            });
        });
    </script>

    <script language="javascript" type="text/javascript">
        function document.onkeydown() {
            var e = event.srcElement;
            if (event.keyCode == 13) {
                //document.all.btnSearch.click();
                if ($("#txtPage").val() != '') {
                    document.all.btnGotoPage.click();
                }
                else {
                    document.all.btnSearch.click();
                }
                return false;
            }
        }  
    </script>

</head>
<body>
    <div class="text" id="popupcalendar">
    </div>
    <form id="Form1" method="post" enctype="multipart/form-data" runat="server">
    <div class="mainbox">
        <div class="sitemapbox">
            <div id="info" class="sitemap">
                <% if (Request.QueryString["PDType"] == "OCV" || Request.QueryString["PDType"] == "OCR")
                   { %>
                &nbsp;&raquo;&nbsp;IBG<%=Request.QueryString["PDType"].Substring(1, 2)%>&nbsp;&raquo;&nbsp;Closed
                <%  } %>
                <%else
                    { %>
                &nbsp;&raquo;&nbsp;<%=Request.QueryString["PDType"]%>&nbsp;&raquo;&nbsp;Closed
                <% } %>
            </div>
        </div>
        <table id="Table11" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    <table id="Table9" cellspacing="0" cellpadding="0">
                        <!--DWLayoutTable-->
                        <tr>
                            <td>
                                <table id="Table4" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <!--tab区域-->
                                            <div class="tabbox purplebg_dark">
                                                <ul class="tabpos">
                                                    <li><span class="tab_active">
                                                        <%=Resources.PageTitles.Closed%></span></li>
                                                </ul>
                                            </div>
                                            <div class="formbox5">
                                                <span class=" float_lft width120">Status (状态)：</span> <span class=" float_lft width180">
                                                    <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="True" CssClass="formfont width160">
                                                        <asp:ListItem Value="-1">All</asp:ListItem>
                                                        <asp:ListItem Value="0">Closed</asp:ListItem>
                                                        <asp:ListItem Value="1">Archived</asp:ListItem>
                                                    </asp:DropDownList>
                                                </span><span class="  float_lft padding_lft20">Start Time(起始时间) </span><span class=" float_lft padding_lft20">
                                                    <asp:TextBox ID="tbDateFrom" runat="server" CssClass="VALUEBOX datepicker date-cmp date-min"
                                                        Width="100"></asp:TextBox>
                                                </span>
                                                <%--                                                 <span class=" float_lft padding_lft20">
                                                    <img id="DateFromImg" style="cursor: hand" onclick="showCalendar('Form1','tbDateFrom','DateFromImg',false,1,1,1950,31,12,2100);return false;"
                                                        src="../images/calendar.gif" border="0" name="DateFromImg">
                                                 </span>
--%>
                                                <span class=" float_lft padding_lft20">End Time(结束时间)</span> <span class=" float_lft padding_lft20">
                                                    <asp:TextBox ID="tbDateTo" runat="server" CssClass="VALUEBOX datepicker date-cmp date-max"
                                                        Width="100"></asp:TextBox>
                                                </span>
                                            </div>
                                            <div class="formbox5">
                                                <span class="float_lft width120">Department (部门):</span> <span class=" float_lft width180">
                                                    <asp:DropDownList ID="ddlDepartment" runat="server" CssClass="formfont width160">
                                                    </asp:DropDownList>
                                                </span><span class=" float_lft padding_lft20">Application# (申请单号):</span> <span class=" float_lft padding_lft20">
                                                    <asp:TextBox ID="txtApplication" onmouseover="this.className='TEXTBOXHOVER';" onMouseOut="this.className='TEXTBOX';"
                                                        runat="server" Width="130" MaxLength="50" CssClass="TEXTBOX"></asp:TextBox>
                                                </span>
                                            </div>
                                            <div class="formbox">
                                                <span class=" float_lft">
                                                    <asp:ResourceButton ID="btnSearch" runat="server" Text="Search" ToolTip="SearchTips"
                                                        CssClass="btn" />
                                                    <asp:ResourceButton ID="btnArchive" runat="server" Text="Archive" ToolTip="ArchiveTips"
                                                        CssClass="btn" />
                                                    <asp:ResourceButton ID="btnExport" runat="server" Text="Export" ToolTip="ExportTips"
                                                        CssClass="btn" />
                                                </span>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div id="divGrid">
                                                <asp:DataGrid ID="dgTaskList" ShowHeader="True" AutoGenerateColumns="False" GridLines="both"
                                                    CellPadding="2" runat="server" PageSize="10" AllowPaging="True" PagerStyle-Visible="False"
                                                    AllowSorting="True" CssClass="tablestyle">
                                                    <SelectedItemStyle></SelectedItemStyle>
                                                    <ItemStyle CssClass="tbody"></ItemStyle>
                                                    <HeaderStyle CssClass="thead"></HeaderStyle>
                                                    <FooterStyle></FooterStyle>
                                                    <Columns>
                                                        <asp:TemplateColumn HeaderText=" ">
                                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                            <HeaderTemplate>
                                                                <input type="CheckBox" name="SelectAllCheckBox" onclick="SelectAll(this)">
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="chkSelection" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:BoundColumn Visible="False" DataField="flowId" HeaderText="FlowId"></asp:BoundColumn>
                                                        <asp:TemplateColumn HeaderText="Application#<br/>申请单号" SortExpression="AppNo">
                                                            <ItemStyle></ItemStyle>
                                                            <ItemTemplate>
                                                                <a class="normalLink" href="#" onclick="window.open('../workflow/workflowView.aspx?appid=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&FlowID=<%# DataBinder.Eval(Container.DataItem,"flowid") %>&PDType=<%# DataBinder.Eval(Container.DataItem,"Type")%>&State=<%# DataBinder.Eval(Container.DataItem,"StateCode")%>&Type=App',null,'height=760,width=1106,status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes')"
                                                                    onmouseover="this.style.cursor='hand'" />
                                                                <%# AppNoConverter ( DataBinder.Eval(Container.DataItem,"AppNo") ) %>
                                                                </a>
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:BoundColumn DataField="RequesterNameEN" ReadOnly="True" HeaderText="Applicant<br/>申请人"
                                                            SortExpression="RequesterNameEN">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="Department" ReadOnly="True" HeaderText="Department<br/>部门"
                                                            SortExpression="Department">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="Company" ReadOnly="True" HeaderText="Customer Company<br/>客户公司"
                                                            SortExpression="Company">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="Venue" ReadOnly="True" HeaderText="Venue<br/>地点" SortExpression="Venue"
                                                            Visible="True">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="RequestedDateFrom" ReadOnly="True" HeaderText="Begin Date<br/>开始时间"
                                                            SortExpression="RequestedDateFrom" DataFormatString="{0:M/d/yyyy}">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="RequestedDateTo" ReadOnly="True" HeaderText="End Date<br/>结束时间"
                                                            SortExpression="RequestedDateTo" DataFormatString="{0:M/d/yyyy}">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="CurrentActiveRole" ReadOnly="True" HeaderText="Current Actor<br/>当前操作人"
                                                            SortExpression="CurrentActiveRole">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:BoundColumn DataField="CurrentActiveStepName" ReadOnly="True" HeaderText="Step<br/>操作步骤"
                                                            SortExpression="CurrentActiveStepName">
                                                            <ItemStyle></ItemStyle>
                                                        </asp:BoundColumn>
                                                        <asp:TemplateColumn HeaderText="Status<br/>状态" Visible="True">
                                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                            <ItemTemplate>
                                                                <img src="../Images/Flag<%# DataBinder.Eval(Container.DataItem,"StateCode") %>.gif"
                                                                    alt="<%# DataBinder.Eval(Container.DataItem,"StateCode") %>" title="<%# DataBinder.Eval(Container.DataItem,"StateCode") %>" />
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:TemplateColumn HeaderText="Action" Visible="False">
                                                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                            <ItemTemplate>
                                                                <img src="../Images/COMEDIT.GIF" onclick="window.open('../workflow/workflowView.aspx?appid=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&FlowID=<%# DataBinder.Eval(Container.DataItem,"flowid") %>&PDType=<%# DataBinder.Eval(Container.DataItem,"Type")%>&State=<%# DataBinder.Eval(Container.DataItem,"StateCode")%>&Type=App',null,'height=600,width=800,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes')"
                                                                    onmouseover="this.style.cursor='hand'" />
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                        <asp:BoundColumn Visible="False" DataField="FlowID"></asp:BoundColumn>
                                                        <asp:BoundColumn Visible="False" DataField="CurrentActiveStepName"></asp:BoundColumn>
                                                    </Columns>
                                                </asp:DataGrid>
                                            </div>
                                            <table id="Table3" cellspacing="0" cellpadding="0" class="pagecounting">
                                                <tr>
                                                    <td valign="middle">
                                                        Total Records:
                                                        <asp:Label ID="lblRecordCount" runat="server">lblRecordCount</asp:Label>&nbsp;&nbsp;&nbsp;<img
                                                            src="../images/PageIcon.GIF" border="0">&nbsp;Page:
                                                        <asp:Label ID="lblCurrentPageIndex" runat="server">lblCurrentPageIndex</asp:Label>&nbsp;/&nbsp;
                                                        <asp:Label ID="lblPageCount" runat="server">lblPageCount</asp:Label>
                                                    </td>
                                                    <td align="right">
                                                        <asp:ImageButton ID="btnPageFirst" runat="server" ImageUrl="../images/pg_first.gif"
                                                            ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                        <asp:ImageButton ID="btnPagePrev" runat="server" ImageUrl="../images/pg_pre.gif"
                                                            ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                        <asp:ImageButton ID="btnPageNext" runat="server" ImageUrl="../images/pg_next.gif"
                                                            ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                        <asp:ImageButton ID="btnPageLast" runat="server" ImageUrl="../images/pg_last.gif"
                                                            ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp; Go To Page:
                                                        <asp:TextBox ID="txtPage" runat="server" onmouseover="this.className='txtboxover pager-text';"
                                                            onMouseOut="this.className='txtbox pager-text';" CssClass="txtbox pager-text"
                                                            MaxLength="5"></asp:TextBox>
                                                        <asp:ImageButton ID="btnGotoPage" runat="server" ImageUrl="../images/PageIcon.GIF">
                                                        </asp:ImageButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <%--页面刷新时显示--%>
    <%-- <div id="dialog-message" title="Loading..." style="display: none">
        <p>
            <br />
            <span class="entity-loading"></span><span>Operation in process, please wait...<br />
                <br />
                处理中, 请稍候。。。</span>
        </p>
    </div>--%>
</body>
</html>
